// 文件专用
import request from '@/utils/request'
/**
 * 用户邮箱号,密码登录
 * @param {number} fileId 文件ID
 * @returns {*}
 */

// 下载头像
export const downloadFile = (fileId) => {
  return request.get('/normal/avatar/download', {
    params: {
      fileId: fileId
    },
    responseType: 'blob'

  })
}

// 下载用户管理时的头像
export const userAvatarDown = (fileId) => {
  return request.get('/user/down', {
    params: {
      fileId: fileId
    },
    responseType: 'blob'

  })
}

// 意见反馈图片下载

export const feedbackImgDown = (fileId) => {
  return request.get('/advise/down', {
    params: {
      fileId: fileId
    },
    responseType: 'blob'

  })
}
